home *** CD-ROM | disk | FTP | other *** search
/ Game Head 1996 March / Game Head March 96.iso / dos / tarot2 / install.bat < prev    next >
Encoding:
DOS Batch File  |  1993-06-11  |  4.0 KB  |  106 lines

  1. @echo off
  2. if "%1" == "" goto usage
  3. if "%2" == "" goto usage
  4.  
  5. if not exist t2.exe goto nofile
  6. if not exist tarot2.doc goto nofile
  7.  
  8. if "%2" == "v" goto V
  9. if not "%2" == "V" goto ega
  10. :V
  11. if not exist card_16.exe goto novmode
  12. md %1
  13. copy readme.1st %1 
  14. copy tarot2.doc %1
  15. copy t2.exe %1
  16. %1\t2.exe %1 *.* 
  17. del %1\t2.exe
  18. copy card_16.exe %1
  19. %1\card_16.exe %1 *.*
  20. del %1\card_16.exe
  21. goto success
  22.  
  23. :ega
  24. if "%2" == "e" goto E
  25. if not "%2" == "E" goto svga
  26. :E
  27. if not exist card_ega.exe goto noemode
  28. md %1
  29. copy readme.1st %1 
  30. copy tarot2.doc %1
  31. copy t2.exe %1
  32. %1\t2.exe %1 *.* 
  33. del %1\t2.exe
  34. copy card_ega.exe %1
  35. %1\card_ega.exe %1 *.*
  36. del %1\card_ega.exe
  37. goto success
  38.  
  39. :svga
  40. if "%2" == "s" goto S
  41. if not "%2" == "S" goto usage
  42. :S
  43. if not exist card_256.exe goto nosmode
  44. md %1
  45. copy readme.1st %1 
  46. copy tarot2.doc %1
  47. copy t2.exe %1
  48. %1\t2.exe %1 *.* 
  49. del %1\t2.exe
  50. copy card_256.exe %1
  51. %1\card_256.exe %1 *.*
  52. del %1\card_256.exe
  53. goto success
  54.  
  55. :nofile
  56. echo *******************************************************************************
  57. echo *     One or more files are missing that are required to install and run      *
  58. echo *     TAROT2. Read TAROT2.DOC for a list of the files you should have.        *
  59. echo *******************************************************************************  
  60. goto usage
  61.  
  62. :novmode
  63. echo *******************************************************************************
  64. echo *   The file CARD_16.EXE must be present on the source drive to install the   *
  65. echo *   VGA cards. Read TAROT2.DOC for a list of the files you should have.       *
  66. echo *******************************************************************************
  67. goto usage
  68.  
  69. :nosmode
  70. echo *******************************************************************************
  71. echo *  The file CARD_256.EXE must be present on the source drive to install the   *
  72. echo *  SVGA cards. Read TAROT2.DOC for a list of the files you should have.       *
  73. echo *******************************************************************************  
  74. goto usage
  75.  
  76. :noemode
  77. echo *******************************************************************************
  78. echo *  The file CARD_EGA.EXE must be present on the source drive to install the   *
  79. echo *  EGA cards. Read TAROT2.DOC for a list of the files you should have.        *
  80. echo *******************************************************************************  
  81.  
  82. :usage                                                                            
  83. echo *******************************************************************************
  84. echo *                                                                             *
  85. echo *     Usage: INSTALL [path] [mode]                                            *
  86. echo *                                                                             *
  87. echo *      Where [path] is the drive and subdirectory where you want              *
  88. echo *      TAROT2 installed. If the subdirectory doesn't exist it will be         *
  89. echo *      created. Don't put a back slash "\" on the end of this parameter.      *
  90. echo *      Where [mode] is V, E or S. V is for VGA, E is for EGA and S is for     *
  91. echo *      SVGA.                                                                  *
  92. echo *                                                                             *
  93. echo *     Example:  INSTALL C:\TAROT2 V  to install the VGA version onto          *
  94. echo *      the C: drive in the subdirectory TAROT2.                               *
  95. echo *                                                                             *
  96. echo *******************************************************************************
  97. goto end
  98. :success
  99. %1\
  100. cd %1
  101. echo *******************************************************************************
  102. echo *              TAROT2 installed. Type T2SW to start the program.              *
  103. echo *           Read the files README.1ST, TAROT2.DOC and REGISTER.DOC.           *
  104. echo *******************************************************************************
  105. :end
  106.